#include"mystdio.h"
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include<stdio.h>
int main()
{
  mFILE *fd=mfopen("./log.txt","a");
  if(fd==NULL)
  {
    return 1;
  }

  int cat=10;
  while(cat)
  {
    char buffers[64];
    snprintf(buffers,sizeof(buffers),"hello word  number is %d",cat);
    cat--;
    mfwrite(buffers,strlen(buffers),fd);
    sleep(1);
  }
  mfclose(fd);
  return 0;
}
